<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>重置密码_{:C('site.sitename')}</title>
                <link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/findpassword.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>				
        </head>
	<body>

		<!--顶部-->
		{include file="user/userheader" /}

		<!--找回密码-->
		<div class="conbox">
			<div class="tit">
				<h2>重置密码</h2>
				<span>建议采用大小写字母、数字想混合的密码！</span>
			</div>
			<!--表单部分-->
			<div class="conform">
				<form action="{:U('/user/ResetPassword','','',false,true)}" method="post" id="findpasswordreset">
					<ul class="formbox">
						<li>
							<label class="form_tit">您的邮箱号：</label>
							<input type="text" name="email" class="form_inpt readonly" value="{$email}" readonly="readonly" />
						</li>

						<li>
							<label class="form_tit">请输入密码：</label>
							<input type="password" name="newpassword" id="newpassword" class="form_inpt" value="" />
							<span class="Validform_checktip"></span>								
						</li>
						<div class="passwordStrength"><span>弱</span><span>中</span><span>强</span></div>


						<li>
							<label class="form_tit">请确认密码：</label>
							<input type="password" name="retpassword" id="retpassword" class="form_inpt" value="" />
							<span class="Validform_checktip"></span>
						</li>

						<li>
							<label class="form_tit">&nbsp;&nbsp;</label>
							<button class="form_btn" type="submit">
								<big class="in"><i class="icon-loading"></i>数据提交中...</big>
								<big class="on" id="sendMail">提交修改</big>
							</button>			
						</li>
					</ul>
				</form>
			</div>


		</div>
		<!--over-->

		<!--footer-->
		{include file="user/userfooter" /}
		<script type="text/javascript" src="__USERS__/js/Validform_v5.3.2_min.js"></script>
		<script type="text/javascript" src="__USERS__/js/passwordStrength-min.js"></script>
		<script type="text/javascript" src="__USERS__/js/AllScript.js"></script>
		<script type="text/javascript">
			$(function () {
				var retdemo = $("#findpasswordreset").Validform({
					tiptype: 4,
					showAllError: true,
					usePlugin: {
						passwordStrength: {
							minLen: 6,
							maxLen: 18
						}
					},
					ajaxPost: true,
					beforeSubmit: function () {
						$(".form_btn").click(function () {
							$(this).addClass("log-in");
						});
					},
					callback: function (data) {
						if (data.code > 0) {
							$(".form_btn").removeClass("log-in");
							$(".bot_con_bg").removeClass("errors").addClass("succes");
							$(".zhedang").fadeIn(250);
							$(".duifou").fadeIn(300);
							$(".bot_con_txt").html(data.msg);
							setTimeout(function () {
								window.location.href = data.url;
							}, 1000);
						} else {
							$(".bot_con_bg").removeClass("succes").addClass("errors");
							$(".zhedang").fadeIn(350);
							$(".duifou").fadeIn(400);
							$(".bot_con_txt").html("对不起，" + "<em>" + data.msg + "</em>" + "请修改后重新提交！");
						}
					}
				});
				retdemo.addRule([
					{
						ele: "#newpassword",
						datatype: "*6-18",
						sucmsg: "&nbsp;&nbsp;",
						plugin: "passwordStrength"

					},
					{
						ele: "#retpassword",
						datatype: "*6-18",
						recheck: "newpassword",
						sucmsg: "&nbsp;&nbsp;"
					}
				]);

			});
		</script>

		<div class="duifou">
			<div class="top_tit">
				<h5>提示信息</h5>
				<a id="cls" href="javascript:;">×</a>
			</div>
			<div class="bot_con">
				<div class="bot_con_bg"></div>
				<div class="bot_con_txt"></div>
			</div>
		</div>


		<div class="zhedang"></div>

	</body>
</html>
